Search this book | Previous | Table of contents | Next

Index CGI


Index CGI is a more robust version of folder_list2. Its purpose is to dynamically create a list of files contained in a folder and return that list as an HTML document. More than folder_list2, Index CGI (index.cgi) is intended to be the file automatically opened when a reader does not specify a particular file from your server. In other words, index.cgi is intended to be the file specified by the INDEX directive of your machttp.conf file.

Unlike folder_list2, Index CGI will index sub folders in your directory structure. Unfortunately, it automatically appends "index.cgi" to the URLs representing folders. Consequently, if you do not have index.cgi defined as your INDEX attribute, then the links to the folders will not work. Furthermore, you must edit Index CGI to create some of the HTML that it returns. Otherwise, Index CGI will return "broken" images. Give it a try.


Search this book | Previous | Table of contents | Next

Eric last edited this page on September 26, 1995. Please feel free to send comments.